from numpy import zeros
from math import sin, cos, pi
def vertexAndEdge(radius, x, y, z, numberOfVerticiesOnEdge=32):
    vertex = zeros(4*(numberOfVerticiesOnEdge+1),  dtype='float32')
    for i in range(numberOfVerticiesOnEdge):
        angle = 2*pi*i/numberOfVerticiesOnEdge
        zVal = radius*sin(angle)+z
        xVal = radius*cos(angle)+x
        yVal = y
        vertex[4*i]= xVal
        vertex[4*i+1] = yVal
        vertex[4*i+2] = zVal
        vertex[4*i+3] = 1

    vertex[4*numberOfVerticiesOnEdge] = x
    vertex[4*numberOfVerticiesOnEdge+1] = y
    vertex[4*numberOfVerticiesOnEdge+2] = z
    vertex[4*numberOfVerticiesOnEdge+3] = 1
    
    edge = zeros(3*numberOfVerticiesOnEdge,  dtype='uint32')
    for i in range(numberOfVerticiesOnEdge):
        
        edge[3*i] = i
        if(i+1 == numberOfVerticiesOnEdge):
            edge[3*i+1] = 0
        else:
            edge[3*i+1] = i+1
        edge[3*i+2] = numberOfVerticiesOnEdge
        
        
    return vertex,edge